import request from '@/utils/request'

// 查询车主订单管理列表
export function listOrder(query) {
  return request({
    url: '/ofld/order/list',
    method: 'get',
    params: query
  })
}

// 查询车主订单管理详细
export function getOrder(id) {
  return request({
    url: '/ofld/order/' + id,
    method: 'get'
  })
}

// 新增车主订单管理
export function addOrder(data) {
  return request({
    url: '/ofld/order',
    method: 'post',
    data: data
  })
}

// 修改车主订单管理
export function updateOrder(data) {
  return request({
    url: '/ofld/order',
    method: 'put',
    data: data
  })
}

// 删除车主订单管理
export function delOrder(id) {
  return request({
    url: '/ofld/order/' + id,
    method: 'delete'
  })
}


//查询用户的
export function listUser() {
  return request({
    url: '/system/user/list',
    method: 'get',
  })
}

export function listShiptype() {
  return request({
    url: '/ofld/shiptype/list',
    method: 'get',

  })
}
export function listCarinfo() {
  return request({
    url: '/ofld/carinfo/list',
    method: 'get',

  })
}


